

package com.kimo.shop.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kimo.shop.bean.app.dto.ProdCommDataDto;
import com.kimo.shop.bean.app.dto.ProdCommDto;
import com.kimo.shop.bean.app.param.ProdCommParam;
import com.kimo.shop.bean.model.OrderItem;
import com.kimo.shop.bean.model.ProdComm;


/**
 * 商品评论
 *
 * @author kimo-taozhouchuan
 * @date 2019-04-19 10:43:57
 */
public interface ProdCommService extends IService<ProdComm> {
    ProdCommDataDto getProdCommDataByProdId(Long prodId);

    IPage<ProdCommDto> getProdCommDtoPageByUserId(Page page,String userId);

    IPage<ProdCommDto> getProdCommDtoPageByProdId(Page page, Long prodId, Integer evaluate);

    IPage<ProdComm> getProdCommPage(Page page,ProdComm prodComm);

    /**
     * 评论
     * @param orderItem
     * @param prodCommParam
     */
    void comm(OrderItem orderItem, ProdCommParam prodCommParam);
}
